# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         question2
# Description:
# Author:       asus
# Date:         2019/1/17
#-------------------------------------------------------------------------------


#编写程序，使用while循环打印一个菱形，菱形要星号（*）打印，菱形的行数需要从python控制台输入，行数必须是奇数
# print('请输入行数（必须是奇数）')
# num = int(input())
# if (num % 2) == 0:
#     print('请输入奇数')
# else:
i = 1
while i<3:
    if i == 1:
        print('请输入行数（必须是奇数）')
        num = input()
        y = ((int(num) + 1)/2) * (-1)
        while y <= ((int(num) + 1)/2):
            x = ((int(num) + 1)/2) * (-1)
            temp = ""
            while x <= 6:
                if abs(x) + abs(y) < ((int(num) + 1)/2):
                    temp += "*"
                else:
                    temp += " "
                x += 1
            y += 1
            print(temp)
        continue
